package com.raibaz.atm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Splash extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
       
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
    }
    
    protected void onStart() {
    	
    	super.onStart();
    	
        Thread splashTread = new Thread() {
            @Override
            public void run() {
            	try {
					sleep(2000);

				} catch (InterruptedException e) {
					
					e.printStackTrace();
				} finally {
	                startActivity(new Intent("com.raibaz.atm.ATM"));
	                finish();
	             }
            }
        };
        splashTread.start();
    }	
       
}